package org.apache.dolphinscheduler.dao.mapper;

import org.apache.dolphinscheduler.dao.entity.Permission;

import java.util.List;

public interface PermissionMapper {

    List<Permission> listByRoleId(Integer roleId);
    List<Permission> listRolePermission(Integer roleId);
    List<Permission> listByUserId(Integer userId);
    List<Permission> listAll();
    List<Integer> listByPermission(String permission);
    Permission selectById(Integer id);
    int insert(Permission record);
    int update(Permission record);
    int deleteById(Integer id);
}
